package hu.myandroidlife.activity;

import hu.myandroidlife.R;
import hu.myandroidlife.R.id;
import hu.myandroidlife.R.layout;
import hu.myandroidlife.base.BaseActivity;
import android.view.View;
import android.widget.Button;

public class AdapterLearnActivity extends BaseActivity {

	private Button btnTextOnlyList;
	private Button btnTextAndImageList;

	@Override
	protected int getLayoutId() {
		return R.layout.activity_adapter_learn;
	}

	@Override
	protected void initView() {
		btnTextOnlyList = $findViewById(R.id.btnTextOnlyList);
		btnTextAndImageList = $findViewById(R.id.btnTextAndImageList);
	}

	@Override
	protected void initListener() {
		btnTextOnlyList.setOnClickListener(this);
		btnTextAndImageList.setOnClickListener(this);
	}

	@Override
	protected void widgetClick(View v) {
		switch (v.getId()) {
		case R.id.btnTextOnlyList:
			$showMsg("暂未开放");
			break;
		case R.id.btnTextAndImageList:
			$openActivity(TextAndImageListActivity.class, null);
			break;
		default:
			break;
		}
	}

}
